﻿using System;

namespace UnityEngine.PostProcessing
{
	// Token: 0x020000EE RID: 238
	[Serializable]
	public class ChromaticAberrationModel : PostProcessingModel
	{
		// Token: 0x170000CA RID: 202
		// (get) Token: 0x060004D2 RID: 1234 RVA: 0x000274D1 File Offset: 0x000256D1
		// (set) Token: 0x060004D3 RID: 1235 RVA: 0x000274D9 File Offset: 0x000256D9
		public ChromaticAberrationModel.Settings settings
		{
			get
			{
				return this.m_Settings;
			}
			set
			{
				this.m_Settings = value;
			}
		}

		// Token: 0x060004D4 RID: 1236 RVA: 0x000274E2 File Offset: 0x000256E2
		public override void Reset()
		{
			this.m_Settings = ChromaticAberrationModel.Settings.defaultSettings;
		}

		// Token: 0x040006A9 RID: 1705
		[SerializeField]
		private ChromaticAberrationModel.Settings m_Settings = ChromaticAberrationModel.Settings.defaultSettings;

		// Token: 0x020000EF RID: 239
		[Serializable]
		public struct Settings
		{
			// Token: 0x170000CB RID: 203
			// (get) Token: 0x060004D5 RID: 1237 RVA: 0x000274F0 File Offset: 0x000256F0
			public static ChromaticAberrationModel.Settings defaultSettings
			{
				get
				{
					return new ChromaticAberrationModel.Settings
					{
						spectralTexture = null,
						intensity = 0.1f
					};
				}
			}

			// Token: 0x040006AA RID: 1706
			[Tooltip("Shift the hue of chromatic aberrations.")]
			public Texture2D spectralTexture;

			// Token: 0x040006AB RID: 1707
			[Range(0f, 1f)]
			[Tooltip("Amount of tangential distortion.")]
			public float intensity;
		}
	}
}
